#include "vector.h"

void test_vector1()
{
	ywx::vector<int> v1;
	v1.push_back(1);
	v1.push_back(2);
	v1.push_back(3);
	v1.push_back(4);
	for (auto e : v1)
	{
		cout << e << ' ';
	}
	cout << endl;

	ywx::vector<string> v2;
	v2.push_back("yyyyy");
	v2.push_back("wwwww");
	v2.push_back("xxxxx");
	v2.push_back("ddddd");
	v2.push_back("yyyyy");
	v2.push_back("xxxxx");
	for (auto& e : v2)
	{
		cout << e << ' ';
	}
	cout << endl;
}

void test_vector2()
{
	ywx::vector<string> v2;
	v2.push_back("yyyyy");
	v2.push_back("wwwww");
	v2.push_back("xxxxx");
	v2.push_back("ddddd");
	v2.push_back("yyyyy");
	v2.push_back("xxxxx");
	ywx::vector<string> v3(v2);
	for (auto& e : v3)
	{
		cout << e << ' ';
	}
	cout << endl;
}

int main()
{
	ywx::test_vector();
	return 0;
}